<?php

namespace App\Models;

class EwHouseSeco extends BaseModel
{

    /**
     *
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=11, nullable=false)
     */
    public $id;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $three_url;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $name;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tags;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $house_tags;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $city_id;

    /**
     *
     * @var string
     * @Column(type="string", length=128, nullable=true)
     */
    public $region;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=false)
     */
    public $cate_id;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $thumb;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $pics;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $price;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $total_price;

    /**
     *
     * @var double
     * @Column(type="double", length=10, nullable=true)
     */
    public $area;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $address;

    /**
     *
     * @var string
     * @Column(type="string", length=128, nullable=true)
     */
    public $property;

    /**
     *
     * @var string
     * @Column(type="string", length=128, nullable=true)
     */
    public $layout;

    /**
     *
     * @var string
     * @Column(type="string", length=128, nullable=true)
     */
    public $house_name;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $floor;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $top_floor;

    /**
     *
     * @var string
     * @Column(type="string", length=32, nullable=true)
     */
    public $deco_type;

    /**
     *
     * @var string
     * @Column(type="string", length=32, nullable=true)
     */
    public $owner_ship;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $house_orien;

    /**
     *
     * @var double
     * @Column(type="double", length=10, nullable=true)
     */
    public $lon;

    /**
     *
     * @var double
     * @Column(type="double", length=10, nullable=true)
     */
    public $lat;

    /**
     *
     * @var string
     * @Column(type="string", length=128, nullable=true)
     */
    public $sources;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $comment;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $visit;

    /**
     *
     * @var integer
     * @Column(type="integer", length=1, nullable=true)
     */
    public $is_self;

    /**
     *
     * @var integer
     * @Column(type="integer", length=1, nullable=true)
     */
    public $is_display;

    /**
     *
     * @var integer
     * @Column(type="integer", length=1, nullable=true)
     */
    public $is_del;

    /**
     *
     * @var integer
     * @Column(type="integer", length=1, nullable=true)
     */
    public $is_reco_you;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $order_by;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $reco_by;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $index_by;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $create_time;

    /**
     *
     * @var string
     * @Column(type="string", nullable=false)
     */
    public $update_time;



    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'ew_house_seco';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return EwHouseSeco[]|EwHouseSeco
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return EwHouseSeco
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
